class Configuration < ActiveRecord::Base
  def after_update
    makedirs = [self.bt_log_dir, self.video_files_root, self.torrent_files_root]
    makedirs.each do |dir|
      if !File.exists?(dir)
        FileUtils.mkdir_p(dir)
      end
    end
  end

end
